var ComplementSQLiteOptimizer = {
	handleEvent : function(event) {
		var count	= Application.prefs.getValue("sqlite_opt.close_count", 0);
		var limit = Application.prefs.getValue("sqlite_opt.auto_reindex_per_browser_close", -1);

		var panel = document.getElementById("csoPanel");
		panel.label += limit - ++count;
	}
}

window.addEventListener("load", ComplementSQLiteOptimizer, true);
